package com.april.pattern.structural.decorate;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/07/04 11:47
 * @description 鸡蛋的装饰
 */
public class EggDecorator extends AbstractDecorator {
    public EggDecorator(AbstractPancake pancake) {
        super(pancake);
    }

    @Override
    protected String getDecoration() {
        return super.getDecoration() + "加一个鸡蛋";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 1;
    }
}
